<template>
  <HmPermissionLayout :tag="buttonTag" v-bind="$attrs" v-on="$listeners">
    <slot />
  </HmPermissionLayout>
</template>

<script>
import HmPermissionLayout from "./HmPermissionLayout";
export default {
  name: "HmPermissionButton",
  components: {
    HmPermissionLayout,
  },

  data() {
    return {
      buttonTag:
        process.env.VUE_APP_PROJECT === "Mobile-fed"
          ? "van-button"
          : "el-button",
    };
  },
};
</script>

<style></style>
